package com.ahoi.common.constant;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * author: ahoi
 * date: 2018/9/19 13:51
 * description:
 */

@Configuration
@PropertySource("classpath:config.properties")
public class MyConfig {

    @Value("${bookListUrl}")
    private String bookListUrl;
    @Value("${bookDetailUrl}")
    private String bookDetailUrl;
    @Value("${bookDownloadUrl}")
    private String bookDownloadUrl;

    public String getBookListUrl() {
        return bookListUrl;
    }

    public void setBookListUrl(String bookListUrl) {
        this.bookListUrl = bookListUrl;
    }

    public String getBookDetailUrl() {
        return bookDetailUrl;
    }

    public void setBookDetailUrl(String bookDetailUrl) {
        this.bookDetailUrl = bookDetailUrl;
    }

    public String getBookDownloadUrl() {
        return bookDownloadUrl;
    }

    public void setBookDownloadUrl(String bookDownloadUrl) {
        this.bookDownloadUrl = bookDownloadUrl;
    }
}
